package com.admin.common.enums;

/**
 * 评分状态 0 待提交 2 待区县评分
 */
public enum ModuleIFinishStatusEnum {
    WAIT (0, "待录入"),
    FINISHED(1, "已完成");

    private Integer key;
    private String name;

    ModuleIFinishStatusEnum(Integer key, String name) {
        this.key = key;
        this.name = name;
    }

    public Integer getKey() {
        return key;
    }


    public String getName() {
        return name;
    }

    public static String getText(Integer key) {
        if (key == null) {
            return null;
        }
        for (ModuleIFinishStatusEnum e : ModuleIFinishStatusEnum.values()) {
            if (e.getKey().equals(key)) {
                return e.getName();
            }
        }
        return null;
    }

}
